import javax.swing.JCheckBox;


@SuppressWarnings("serial")
public class MyCheckBox extends JCheckBox implements HasMsgCommand
{
	private MsgCommands enumVal;
	private String string;
	
	public MyCheckBox(String string) {
		super(string);
	}

	
	@Override
	public MsgCommands getMsgCommand()
	{
		return enumVal;
	}

	@Override
	public void setMsgCommand(MsgCommands cmd)
	{
		enumVal=cmd;
	}


	@Override
	public String getString() {
		return string;
	}


	@Override
	public void setString(String st) {
		string=st;
	}
}
